<!DOCTYPE html>
<html lang="en">
<head>
    <base href="/xbjy/">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
    <!-- Custom Font Icons CSS-->
    <link rel="stylesheet" href="css/font.css">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="css/custom.css">
	    <link rel="stylesheet" href="bootstrap/css/bootstrap-select.min.css">
    <title>会议系统</title>

</head>
<body>
<header class="header">
    <nav class="navbar navbar-expand-lg" id="navbar">
    </nav>
</header>

<div class="d-flex align-items-stretch" id="main-container">
    <!-- Sidebar Navigation-->
    <nav id="sidebar">

    </nav>
    <!-- Sidebar Navigation end-->
    <div class="page-content">
        <div class="page-header">
            <div class="container-fluid">
                <h2 class="h5 no-margin-bottom">会议系统</h2>
            </div>
        </div>

        <section class="no-padding-bottom">

            <div class="list-group">
                <!--搜索文章的条件-->
                <div class="myTitle">
                    <form class="form-inline">
                        <div class="form-group">
                            <label for="inlineFormInput" class="sr-only">Name</label>
                            <input id="inlineFormInput" type="text" placeholder="按标题名字查找" class="mr-sm-3 form-control"
                                   v-model="meeting.title">
                        </div>
                        
                        <!--选择状态-->
                        <div class="form-group" style="margin-right: 20px;">
                            <select name="dep" class="form-control selectpicker" id="status" v-model="meeting.status">
                                <option value="">请选择状态</option>
                                <option value="0">未开始</option>
                                <option value="1">正在进行</option>
                                <option value="2">已结束</option>
                            </select>
                        </div>
						
						<div class="form-group">
						    <input type="button" value="查询" class="btn btn-primary mr-sm-3 " @click="selectByName(1,pageInfo.pageSize)">
						</div>
                    </form>

                    <input type="button" value="发布会议" class="btn btn-primary" @click="toAddMeeting">


                </div>

                <ul class="myList">
                    <li class="list-group-item" v-for="meeting in pageInfo.list">
                        <div style="float: right;">
                            <span><strong>状态：</strong>
                                <span v-if="meeting.status == 0">未开始</span>
                                <span v-if="meeting.status == 1">进行中</span>
                                <span v-if="meeting.status == 2">已结束</span>
                            </span>
                        </div>
                        <a href="javascript:void(0)" @click="toMeetingDetail(meeting)">{{meeting.title}}</a>
                        <p class="h6"><strong>部门：</strong>{{meeting.deptName}}</p>
                        <p class="h6"><strong>开始时间：</strong>{{meeting.startTime}}</p>
                        <p style="white-space:nowrap;overflow:hidden;text-overflow: ellipsis">
                            {{meeting.content}}
                        </p>
                    </li>


                </ul>

                <nav class="text-center" aria-label="Page navigation">
                    <ul class="pagination">
                        <li v-if="pageInfo.hasPreviousPage">
                            <a href="javascript:void(0);" aria-label="Previous" @click="selectByName(pageInfo.prePage,pageInfo.pageSize)">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </li>
                        <li v-else="pageInfo.hasPreviousPage">
                            <a href="javascript:void(0);" aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </li>
                        <li v-for="i in pageInfo.navigatepageNums">
                            <a href="javascript:void(0);" @click="selectByName(i,pageInfo.pageSize)">
                                {{i}}
                            </a>
                        </li>

                        <li v-if="pageInfo.hasNextPage">
                            <a href="javascript:void(0);" aria-label="Next" @click="selectByName(pageInfo.nextPage,pageInfo.pageSize)">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </li>
                        <li v-else="pageInfo.hasNextPage">
                            <a href="javascript:void(0);" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </section>

        <footer class="footer">
            <div class="footer__block block no-margin-bottom">
                <div class="container-fluid text-center">
                    <p class="no-margin-bottom">Copyright &copy; 2019.Company <a href="#">东方标准</a></p>
                </div>
            </div>
        </footer>
    </div>
</div>

<!-- JavaScript files-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/popper.js/umd/popper.min.js"></script>
<script src="bootstrap/js/bootstrap-select.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/jquery.cookie/jquery.cookie.js"></script>
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="vendor/jquery-validation/jquery.validate.min.js"></script>
<!--<script src="js/charts-home.js"></script>-->
<script src="js/front.js"></script>
<script src="js/custom.js"></script>
<script src="js/vue/vuejs-2.5.16.js"></script>
<script src="js/vue/axios-0.18.0.js"></script>
<script src="js/meeting/meeting.js"></script>
<script src="js/layer/layer.js"></script>
<script>
    $(function(){
        $("#navbar").load("navbar");
        $("#sidebar").load("sidebar");
    })
</script>
</body>
</html>